package com.cdn.allmobilestore.model;

import java.util.ArrayList;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.cdn.allmobilestore.ulti.Log;

public class ListAppInfo extends AppInfo
{

    
    public static ArrayList<AppInfo> valueOfAray(JSONObject paramJSONObject) throws JSONException
    {
        ArrayList<AppInfo> TopAppArray =  new ArrayList<AppInfo>();
        JSONArray jsonArr = paramJSONObject.getJSONArray("data");
        if (jsonArr != null)
        {
        	TopAppArray = new ArrayList<AppInfo>();
            for (int i = 0; i < jsonArr.length(); i++)
            if (!jsonArr.isNull(i))
            {
                JSONObject localJSONObject = jsonArr.getJSONObject(i);                                     
                TopAppArray.add(AppInfo.get(localJSONObject));
            }
        }       
        return TopAppArray;
    }
   
   
    
}